﻿namespace SalesPortal.Web.Models
{
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using Microsoft.AspNet.Identity;
    using Microsoft.Owin.Security;
    using System.ComponentModel;
    using System;

    public class BlockListViewModel : ProjectBlock
    {
        //public EmployeeFilter Filter { get; set; }


        [UIHint("ProjectBlockList")]
        public IEnumerable<SalesPortal.Web.Models.ProjectBlock> BlockList { get; set; }
    }

    [MetadataType(typeof(ProjectBlockMetadata))]
    public partial class ProjectBlock
    {
        class ProjectBlockMetadata
        {
            [DisplayName("Block")]
            public int Id { get; set; }

            [DisplayName("Project")]
            public int ProjectId { get; set; }

            [DisplayName("Block No")]
            public string BlockNo { get; set; }

            [DisplayName("Block No (doorplate)")]
            public string DoorPlateBlockNo { get; set; }

            //[DisplayName("Floors")]
            //[UIHint("BlockFloor")]
            //public virtual ICollection<BlockFloor> BlockFloors { get; set; }

            [DisplayName("Project")]
            public virtual Project Project { get; set; }

        } // class ProjectBlockMetadata

    } // public partial class ProjectBlock




} // namespace SalesPortal.Web.Models